The main machinery (arms 1 through 12)
First output takes air, fire and earth from the dispersed quint 1, air from the dispersed quint 2 and uses quint 3.
Consecutive outputs only grab 2 quint and take the leftover water from the previous output as the extra air instead.
The odd one out pipeline (arms 13 through 21) uses the now available extra quint.